gtk4.git
5 years agoflowbox: Make the children focusable again
Matthias Clasen [Wed, 13 May 2020 22:27:18 +0000 (18:27 -0400)]
flowbox: Make the children focusable again

This broke when the :focusable property was introduced.
The symptom was that keynav in the Emoji chooser did
not work anymore.

5 years agoMerge branch 'tests-cleanup' into 'master'
Matthias Clasen [Wed, 13 May 2020 22:19:55 +0000 (22:19 +0000)]
Merge branch 'tests-cleanup' into 'master'

Tests cleanup

See merge request GNOME/gtk!1894

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 13 May 2020 21:57:15 +0000 (21:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1895

5 years agogtk-demo: Plug a memory leak
Matthias Clasen [Wed, 13 May 2020 21:24:57 +0000 (17:24 -0400)]
gtk-demo: Plug a memory leak

This leak was there all along. But with the new
gtk_window_destroy(), it shows up as an unclosable
window. Very noticable.

5 years agoscrolledwindow: Fix swapping out child
Matthias Clasen [Wed, 13 May 2020 21:10:36 +0000 (17:10 -0400)]
scrolledwindow: Fix swapping out child

This was not working in the case that the existing child
is not a scrollable. It showed up as crashes of the
scrolling benchmark in gtk4-demo when switching examples.

5 years agotests: Fix scrolling performance test
Matthias Clasen [Wed, 13 May 2020 21:10:00 +0000 (17:10 -0400)]
tests: Fix scrolling performance test

Maybe this should be added to the benchmarks section
in gtk-demo. For now, fix it to work again.

5 years agotests: Drop testnoscreen
Matthias Clasen [Wed, 13 May 2020 20:35:28 +0000 (16:35 -0400)]
tests: Drop testnoscreen

It tests something that no longer works, and that
we probably don't want to guarantee anyway.

See #2738

5 years agotests: Drop testexpander
Matthias Clasen [Wed, 13 May 2020 20:23:48 +0000 (16:23 -0400)]
tests: Drop testexpander

This was copied into gtk4-demo at some point.

See #2738

5 years agotests: Drop testfontchooser
Matthias Clasen [Wed, 13 May 2020 20:18:50 +0000 (16:18 -0400)]
tests: Drop testfontchooser

This test adds nothing over the font choosers in
our various demos.

See #2738

5 years agotests: Drop testcolorchooser
Matthias Clasen [Wed, 13 May 2020 20:15:09 +0000 (16:15 -0400)]
tests: Drop testcolorchooser

We have plenty of color choosers in demos.
This test doesn't add anything.

See #2738

5 years agoMerge branch 'usable-scales' into 'master'
Matthias Clasen [Wed, 13 May 2020 20:06:51 +0000 (20:06 +0000)]
Merge branch 'usable-scales' into 'master'

Usable scales

See merge request GNOME/gtk!1893

5 years agotests: Drop testbox
Matthias Clasen [Wed, 13 May 2020 19:57:03 +0000 (15:57 -0400)]
tests: Drop testbox

Not useful enough to keep.

See #2738

5 years agotests: Drop testcolorchooser2
Matthias Clasen [Wed, 13 May 2020 19:52:00 +0000 (15:52 -0400)]
tests: Drop testcolorchooser2

This tests an embedded colorchooser. Just like we have in
widget-factory. And it doesn't work in !srcdir builds, so
it can go.

See: #2738

5 years agotests: Drop testicontheme
Matthias Clasen [Wed, 13 May 2020 19:42:25 +0000 (15:42 -0400)]
tests: Drop testicontheme

This is a command line utility for GtkIconTheme
that is probably not as useful as gtk4-icon-browser.

See: #2738

5 years agotests: Drop testpixbuf-scale
Matthias Clasen [Wed, 13 May 2020 19:40:39 +0000 (15:40 -0400)]
tests: Drop testpixbuf-scale

This looks like a GdkPixbuf utility, and we
are moving away from GdkPixbuf anyway.

See: #2738

5 years agotests: Drop testtoolbar2
Matthias Clasen [Wed, 13 May 2020 19:37:21 +0000 (15:37 -0400)]
tests: Drop testtoolbar2

This is just a tool bar styling test; we have
the same in the widget factory.

See: #2738

5 years agoscale: Make the area around the trough clickable
Matthias Clasen [Wed, 13 May 2020 19:23:23 +0000 (15:23 -0400)]
scale: Make the area around the trough clickable

The narrow trough is too hard to hit as a click target.
Make the entire scale clickable.

5 years agoMerge branch 'wip/exalm/ocd' into 'master'
Matthias Clasen [Wed, 13 May 2020 18:31:39 +0000 (18:31 +0000)]
Merge branch 'wip/exalm/ocd' into 'master'

demo: Remove double borders from the treeview

See merge request GNOME/gtk!1892

5 years agoMerge branch 'wip/jimmac/menu-styling-adjustments' into 'master'
Matthias Clasen [Wed, 13 May 2020 17:18:45 +0000 (17:18 +0000)]
Merge branch 'wip/jimmac/menu-styling-adjustments' into 'master'

Wip/jimmac/menu styling adjustments

See merge request GNOME/gtk!1891

5 years agoAdwaita: use thinner arrows for navigation
Jakub Steiner [Wed, 13 May 2020 17:18:45 +0000 (17:18 +0000)]
Adwaita: use thinner arrows for navigation

- go-next go-previous instead of pan-end pan-start

See https://gitlab.gnome.org/GNOME/gtk/-/issues/2675

5 years agodemo: Remove double borders from the treeview
Alexander Mikhaylenko [Wed, 13 May 2020 15:57:00 +0000 (20:57 +0500)]
demo: Remove double borders from the treeview

5 years agoUpdate Japanese translation
sicklylife [Wed, 13 May 2020 15:16:19 +0000 (15:16 +0000)]
Update Japanese translation

5 years agoUpdate Japanese translation
sicklylife [Wed, 13 May 2020 15:12:03 +0000 (15:12 +0000)]
Update Japanese translation

5 years agoCosmetics
Matthias Clasen [Wed, 13 May 2020 12:11:41 +0000 (08:11 -0400)]
Cosmetics

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Wed, 13 May 2020 12:08:29 +0000 (12:08 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

Closes #2740, #2742, and #2741

See merge request GNOME/gtk!1890

5 years agoMerge branch 'gtk-demo-expander-fix' into 'master'
Matthias Clasen [Wed, 13 May 2020 11:44:11 +0000 (11:44 +0000)]
Merge branch 'gtk-demo-expander-fix' into 'master'

gtk-demo: Fix expander demo

See merge request GNOME/gtk!1889

5 years agoMerge branch 'print-editor-new-crash' into 'master'
Matthias Clasen [Wed, 13 May 2020 11:42:00 +0000 (11:42 +0000)]
Merge branch 'print-editor-new-crash' into 'master'

print-editor: Fix crash

See merge request GNOME/gtk!1888

5 years agowindow: Restructure gtk_window_destroy()
Timm Bäder [Wed, 13 May 2020 09:34:33 +0000 (11:34 +0200)]
window: Restructure gtk_window_destroy()

The previous code was unreffing the window twice, which caused problems
during dialog destruction. Move to g_list_store_find instead of
iterating manually.

ref() the window before and unref() after. g_list_store_remove will
actually unref() the window, since the toplevel_list owns its own
reference.

Fixes #2741
Fixes #2742

5 years agomain: Inline propagate_{down,up} in propagate_internal()
Timm Bäder [Fri, 8 May 2020 08:32:57 +0000 (10:32 +0200)]
main: Inline propagate_{down,up} in propagate_internal()

Don't have to worry about anyone calling the up/down variants on their
own this way.

5 years agowindow: Create constraint solver on demand
Timm Bäder [Wed, 13 May 2020 07:21:01 +0000 (09:21 +0200)]
window: Create constraint solver on demand

5 years agowidget: Make 1 if out of 2 ifs
Timm Bäder [Sat, 2 May 2020 05:50:57 +0000 (07:50 +0200)]
widget: Make 1 if out of 2 ifs

5 years agogtk-demo: InfoBar is not a GtkBox anymore
Alexander Larsson [Wed, 13 May 2020 09:04:49 +0000 (11:04 +0200)]
gtk-demo: InfoBar is not a GtkBox anymore

Use gtk_info_bar_add_child to add children

5 years agogtk-demo: Fix expander demo
Alexander Larsson [Wed, 13 May 2020 08:50:41 +0000 (10:50 +0200)]
gtk-demo: Fix expander demo

GtkExpander is not a GtkBox anymore, so use the new gtk_expander_set_child()
API.

5 years agoprint-editor: Fix crash
Alexander Larsson [Wed, 13 May 2020 08:18:17 +0000 (10:18 +0200)]
print-editor: Fix crash

We're trying to g_free a GFile, which is not good...

5 years agopaned: Fix up the docs once more
Timm Bäder [Wed, 13 May 2020 07:42:51 +0000 (09:42 +0200)]
paned: Fix up the docs once more

5 years agocssvalue: Add class check to transition
Timm Bäder [Wed, 13 May 2020 06:06:51 +0000 (08:06 +0200)]
cssvalue: Add class check to transition

In b25f93e24c78c639b4fd869d4e42ba9161781c12 we removed the code
comparing the transition functions, but we didn't add any other check
back.

Fixes #2740

5 years agogl renderer: Fix nested rounded clip rendering
Timm Bäder [Tue, 12 May 2020 18:11:13 +0000 (20:11 +0200)]
gl renderer: Fix nested rounded clip rendering

If the inner clip intersects with the corners of the outer clip, we
potentially need a texture. We should add more fine-grained checks for
this in the future though.

Test case included.

5 years agonode-editor: Monitor file and reload on changes
Timm Bäder [Tue, 12 May 2020 18:09:22 +0000 (20:09 +0200)]
node-editor: Monitor file and reload on changes

5 years agowidget: Move adjusted size calculation below early-out goto
Timm Bäder [Sun, 10 May 2020 14:55:03 +0000 (16:55 +0200)]
widget: Move adjusted size calculation below early-out goto

5 years agowidget: Remove size allocate signal enum member
Timm Bäder [Sun, 10 May 2020 14:54:49 +0000 (16:54 +0200)]
widget: Remove size allocate signal enum member

5 years agorenderboder: Ignore transparent outlines
Timm Bäder [Sun, 10 May 2020 08:02:20 +0000 (10:02 +0200)]
renderboder: Ignore transparent outlines

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 13 May 2020 02:10:20 +0000 (02:10 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

x11: Avoid a critical in clipboard data transfer

Closes #2736

See merge request GNOME/gtk!1887

5 years agox11: Avoid a critical in clipboard data transfer
Matthias Clasen [Wed, 13 May 2020 01:29:15 +0000 (21:29 -0400)]
x11: Avoid a critical in clipboard data transfer

The handler we are calling here asserts that it gets
an interned string as mime_type. So give it one.

Fixes: #2736
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 12 May 2020 21:18:03 +0000 (21:18 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1885

5 years agoMerge branch 'tests-cleanup' into 'master'
Matthias Clasen [Tue, 12 May 2020 21:17:29 +0000 (21:17 +0000)]
Merge branch 'tests-cleanup' into 'master'

Tests cleanup

See merge request GNOME/gtk!1884

5 years agopaned: Don't ignore the type attribute
Matthias Clasen [Tue, 12 May 2020 20:26:28 +0000 (16:26 -0400)]
paned: Don't ignore the type attribute

We were meaning to only handle <child> here for
compatibility, not <child type="somethingelse">.

5 years agopaned: Drop the Private struct
Matthias Clasen [Tue, 12 May 2020 20:25:58 +0000 (16:25 -0400)]
paned: Drop the Private struct

5 years agotests: Drop the visuals test
Matthias Clasen [Tue, 12 May 2020 19:56:46 +0000 (15:56 -0400)]
tests: Drop the visuals test

This was just a different way to load a ui file
and try it with dark mode. This can be done
with gtk-builder-tool preview and GTK_THEME.

5 years agotests: Move testcairo into gtk4-demo
Matthias Clasen [Tue, 12 May 2020 19:42:37 +0000 (15:42 -0400)]
tests: Move testcairo into gtk4-demo

Replace the boring checkboard pattern with this
exciting drawing, and save one test binary at the
same time!

5 years agoDrop the gtkgears test
Matthias Clasen [Tue, 12 May 2020 19:29:55 +0000 (15:29 -0400)]
Drop the gtkgears test

This has recently been moved to gtk4-demo.
No need to duplicate it.

5 years agoMove print-editor to demos
Matthias Clasen [Tue, 12 May 2020 19:28:34 +0000 (15:28 -0400)]
Move print-editor to demos

It is too demo-esque for languishing in tests/.

5 years agoNEWS: Updates
Matthias Clasen [Tue, 12 May 2020 19:12:17 +0000 (15:12 -0400)]
NEWS: Updates

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 12 May 2020 18:54:59 +0000 (18:54 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

printoperation-unix: Fix a use-after-free

See merge request GNOME/gtk!1883

5 years agoMerge branch 'docs-fixes' into 'master'
Emmanuele Bassi [Tue, 12 May 2020 18:40:34 +0000 (18:40 +0000)]
Merge branch 'docs-fixes' into 'master'

Docs fixes

See merge request GNOME/gtk!1882

5 years agoprintoperation-unix: Fix a use-after-free
Matthias Clasen [Tue, 12 May 2020 18:09:51 +0000 (14:09 -0400)]
printoperation-unix: Fix a use-after-free

It turns out that finish_print destroys the
PrintResponseData, so we can't access it afterwards.

5 years agodocs: Add annotations for GtkPaned new getters
Emmanuele Bassi [Tue, 12 May 2020 17:52:45 +0000 (18:52 +0100)]
docs: Add annotations for GtkPaned new getters

Which means also adding gtk-doc stanzas.

5 years agodocs: Remove unnecessary SECTION
Emmanuele Bassi [Tue, 12 May 2020 17:44:21 +0000 (18:44 +0100)]
docs: Remove unnecessary SECTION

The GdkDragSurface definitions fall under the "dnd" section.

5 years agodocs: Remove redundant SECTION
Emmanuele Bassi [Tue, 12 May 2020 17:43:56 +0000 (18:43 +0100)]
docs: Remove redundant SECTION

We already have a SECTION stanza for gtk-doc.

5 years agoMerge branch 'wip/carlosg/broken-grabs' into 'master'
Carlos Garnacho [Tue, 12 May 2020 16:14:47 +0000 (16:14 +0000)]
Merge branch 'wip/carlosg/broken-grabs' into 'master'

Fixes to broken grabs

Closes #2665

See merge request GNOME/gtk!1879

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 12 May 2020 15:58:10 +0000 (15:58 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

window: Hide windows on destroy

See merge request GNOME/gtk!1881

5 years agogtkmain: Release the active state on GDK_GRAB_BROKEN
Carlos Garnacho [Tue, 12 May 2020 08:41:54 +0000 (10:41 +0200)]
gtkmain: Release the active state on GDK_GRAB_BROKEN

This is handled internally here, but misses broken grabs. The active
state should be dropped just as if the button were released.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2665
5 years agowindow: Hide windows on destroy
Matthias Clasen [Tue, 12 May 2020 15:10:36 +0000 (11:10 -0400)]
window: Hide windows on destroy

I thought I could get away with just unrealizing the
window, but it turns out that gtk_window_hide() is the
place where we remove grabs when a modal dialog goes
away, so we ended up with stuck grabs.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 12 May 2020 14:52:01 +0000 (14:52 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Documentation work

See merge request GNOME/gtk!1880

5 years agoMerge branch 'ebassi/run-dialog-run' into 'master'
Matthias Clasen [Tue, 12 May 2020 14:29:54 +0000 (14:29 +0000)]
Merge branch 'ebassi/run-dialog-run' into 'master'

Remove gtk_dialog_run() and friends

Closes #371

See merge request GNOME/gtk!1801

5 years agoDo not release the GFile prematurely
Emmanuele Bassi [Fri, 1 May 2020 10:08:41 +0000 (11:08 +0100)]
Do not release the GFile prematurely

Otherwise we won't be able to access it to get the URI for the
GtkPrinterOption.

This fixes a regression introduced in commit 5f070ff2333.

5 years agodocs: Mention blocking functions in the migration guide
Emmanuele Bassi [Thu, 30 Apr 2020 15:08:37 +0000 (16:08 +0100)]
docs: Mention blocking functions in the migration guide

Link to how to make a dialog modal, and to the response signal.

5 years agoRemove gtk_dialog_run()
Emmanuele Bassi [Thu, 30 Apr 2020 17:53:02 +0000 (18:53 +0100)]
Remove gtk_dialog_run()

Nested main loops are bad, as they introduce layers of complexity caused
by the potential re-entrancy in the case of multiple event sources, like
IPC, threads, etc. Additionally, the programming model they provide—stop
the world while spinning a new loop—does not conform to the event-driven
model employed by GTK.

5 years agoRemove gtk_dialog_run() from GtkPrintUnixDialog
Emmanuele Bassi [Thu, 30 Apr 2020 17:45:01 +0000 (18:45 +0100)]
Remove gtk_dialog_run() from GtkPrintUnixDialog

Replace it with an explicit nested main loop, as we need to block the
signal handler currently being emitted depending on the response of the
overwrite confirmation dialog.

This is a bit of a hack, and the only reason we need it is that the
print dialog will load the last used path as the output file name, when
printing to a file; this means that, in theory, it would be possible to
press Print without selecting a file, and accidentally overwriting an
existing file.

It would be much simpler if we did not store the last used path, and
always explicitly asked the user to select a file; this would avoid
destructive actions, and would allow us to rely on the overwrite
confirmation dialog right inside the file chooser.

5 years agoRemove unnecessary deprecation pragmas
Emmanuele Bassi [Thu, 30 Apr 2020 16:24:15 +0000 (17:24 +0100)]
Remove unnecessary deprecation pragmas

The gtk_window_present() function is not deprecated.

5 years agoDrop gtk_dialog_run() from GtkPrintOperationUnix
Emmanuele Bassi [Thu, 30 Apr 2020 15:28:00 +0000 (16:28 +0100)]
Drop gtk_dialog_run() from GtkPrintOperationUnix

We still provide a blocking API, but we should strongly reconsider it.

5 years agotests: Remove gtk_dialog_run()
Emmanuele Bassi [Thu, 30 Apr 2020 14:32:38 +0000 (15:32 +0100)]
tests: Remove gtk_dialog_run()

Either use the "response" signal for dialogs that are already modal, or
use an explicit nested loop for tests that rely on the response id being
available in sequence.

5 years agoDrop gtk_dialog_run() from GtkFileChooserWidget
Emmanuele Bassi [Thu, 30 Apr 2020 13:41:57 +0000 (14:41 +0100)]
Drop gtk_dialog_run() from GtkFileChooserWidget

The various dialogs we use inside the file chooser are modal already,
and do no need a nested loop.

5 years agodocs: Remove use of gtk_dialog_run()
Emmanuele Bassi [Thu, 30 Apr 2020 13:05:23 +0000 (14:05 +0100)]
docs: Remove use of gtk_dialog_run()

Direct people to use GTK_DIALOG_MODAL and the "response" signal instead
of nested main loops.

5 years agoRemove gtk_native_dialog_run()
Emmanuele Bassi [Thu, 30 Apr 2020 12:56:41 +0000 (13:56 +0100)]
Remove gtk_native_dialog_run()

Nested main loops are bad, as they introduce layers of complexity caused
by the potential re-entrancy in the case of multiple event sources, like
IPC, threads, etc. Additionally, the programming model they provide—stop
the world while spinning a new loop—does not conform to the event-driven
model employed by GTK.

5 years agodocs: Remove use of gtk_native_dialog_run() from examples
Emmanuele Bassi [Thu, 30 Apr 2020 12:51:44 +0000 (13:51 +0100)]
docs: Remove use of gtk_native_dialog_run() from examples

Use the "response" signal instead.

5 years agoRemove gtk_dialog_run() from GtkMountOperation
Emmanuele Bassi [Thu, 30 Apr 2020 12:43:17 +0000 (13:43 +0100)]
Remove gtk_dialog_run() from GtkMountOperation

5 years agogtkmain: Propagate GDK_GRAB_BROKEN events to/from current focus
Carlos Garnacho [Tue, 12 May 2020 08:36:18 +0000 (10:36 +0200)]
gtkmain: Propagate GDK_GRAB_BROKEN events to/from current focus

Let keyboard/pointer paths handle their own events, and find the
current focus. The event will be propagated through instead of
being just emitted on the toplevel.

This makes it handled throughout all the gestures that want to
know about it.

5 years agogdk/wayland: Drop explicit ungrab after surface move/resize
Carlos Garnacho [Tue, 12 May 2020 08:24:36 +0000 (10:24 +0200)]
gdk/wayland: Drop explicit ungrab after surface move/resize

We now break grabs properly if receiving a .leave event with
active buttons. This is not necessary anymore.

5 years agogdk/wayland: Ensure .leave events with active buttons breaks grabs
Carlos Garnacho [Tue, 12 May 2020 08:21:35 +0000 (10:21 +0200)]
gdk/wayland: Ensure .leave events with active buttons breaks grabs

Instead of silently ending up the grab, make it sure that we emit
a GDK_GRAB_BROKEN event if needed.

5 years agogdk/wayland: Keep track of implicit grabs
Carlos Garnacho [Tue, 12 May 2020 08:19:47 +0000 (10:19 +0200)]
gdk/wayland: Keep track of implicit grabs

Tracking of those broke sometime along the gdk cleanups, so we
started missing some GDK_GRAB_BROKEN events from being emitted
(eg. after a button press/implicit grab triggers an active grab).

Implicit grabs are only added if there's no prior grab (either
implicit through other button presses, or explicit), in order to
keep accounting correct, make those prevail.

5 years agogtktexthandle: Set css name on GtkWidgetClass
Carlos Garnacho [Sat, 25 Apr 2020 00:56:38 +0000 (02:56 +0200)]
gtktexthandle: Set css name on GtkWidgetClass

Handles are their own widget, special names are not necessary
anymore.

5 years agodemos: Remove gtk_dialog_run()
Emmanuele Bassi [Thu, 30 Apr 2020 12:30:51 +0000 (13:30 +0100)]
demos: Remove gtk_dialog_run()

Use modal dialogs and the "response" signal.

5 years agodocs: Updates to the migration guide
Matthias Clasen [Tue, 12 May 2020 11:49:07 +0000 (07:49 -0400)]
docs: Updates to the migration guide

Remove some duplicated content, reorder things
to make more sense, and tweak the wording.

5 years agodocs: Tweaks
Matthias Clasen [Tue, 12 May 2020 05:03:59 +0000 (01:03 -0400)]
docs: Tweaks

Replace some occurrences of GTK+ by GTK.

5 years agodocs: Updates to the common questions
Matthias Clasen [Tue, 12 May 2020 05:03:34 +0000 (01:03 -0400)]
docs: Updates to the common questions

Refresh the answers to some common questions.

5 years agodocs: Don't point at mailing lists
Matthias Clasen [Tue, 12 May 2020 05:02:49 +0000 (01:02 -0400)]
docs: Don't point at mailing lists

Replace references to the mailing lists by
discourse + irc.

5 years agodocs: Rearrange the introduction some more
Matthias Clasen [Tue, 12 May 2020 05:02:07 +0000 (01:02 -0400)]
docs: Rearrange the introduction some more

Fine-tune some wording, and move the Custom Drawing
example earlier.

5 years agoMerge branch 'kill-containers' into 'master'
Matthias Clasen [Tue, 12 May 2020 03:14:26 +0000 (03:14 +0000)]
Merge branch 'kill-containers' into 'master'

Kill containers

See merge request GNOME/gtk!1866

5 years agodocs: Update migration guide
Matthias Clasen [Sun, 10 May 2020 02:24:00 +0000 (22:24 -0400)]
docs: Update migration guide

Add sections about GtkBin, GtkContainer and gtk_widget_destroy().

5 years agodialog: Firm up handling of action widgets
Matthias Clasen [Sat, 9 May 2020 03:56:52 +0000 (23:56 -0400)]
dialog: Firm up handling of action widgets

It is unreliable to use the widget dom api to locate
action widgets. For example in a headerbar, they might
be deeper in the hierarchy, with boxes in between.
Therefore, make GtkDialog keep a list of action widgets,
and use that when operating on action widgets.

5 years agodialog: Remove an unused struct
Matthias Clasen [Sat, 9 May 2020 03:30:25 +0000 (23:30 -0400)]
dialog: Remove an unused struct

5 years agoDrop GtkContainer and its accessible implementation
Matthias Clasen [Sat, 9 May 2020 01:27:13 +0000 (21:27 -0400)]
Drop GtkContainer and its accessible implementation

It is no longer used.

5 years agotestsuite: Drop a container api use
Matthias Clasen [Sat, 9 May 2020 00:06:46 +0000 (20:06 -0400)]
testsuite: Drop a container api use

5 years agoDrop gtkcontainer.h includes
Matthias Clasen [Sat, 9 May 2020 00:02:55 +0000 (20:02 -0400)]
Drop gtkcontainer.h includes

These includes are unused.

5 years agobox: Derive from GtkWidget
Matthias Clasen [Fri, 8 May 2020 19:31:02 +0000 (15:31 -0400)]
box: Derive from GtkWidget

5 years agoassistant: Remove code that doesn't work anymore
Matthias Clasen [Fri, 8 May 2020 19:58:57 +0000 (15:58 -0400)]
assistant: Remove code that doesn't work anymore

When GtkContainer goes away, we don't have
an "add" signal anymore.

5 years agodialog: Remove code that doesn't work anymore
Matthias Clasen [Fri, 8 May 2020 19:31:19 +0000 (15:31 -0400)]
dialog: Remove code that doesn't work anymore

When GtkContainer goes away, we don't have an
"add" signal anymore.

5 years agoshortcutssection: Drop container bits
Matthias Clasen [Fri, 8 May 2020 19:45:36 +0000 (15:45 -0400)]
shortcutssection: Drop container bits

When GtkBox stops being a container, GtkShortcutsSection
will also no longer be a container. So, stop overriding
container vfuncs, and instead add a buildable implementation
that does the right thing.

5 years agoshortcutsgroup: Drop container bits
Matthias Clasen [Sat, 9 May 2020 01:08:20 +0000 (21:08 -0400)]
shortcutsgroup: Drop container bits

When GtkBox stops being a container, GtkShortcutsGroup
will also no longer be a container. So, stop overriding
container vfuncs, and instead add a buildable implementation
that does the right thing.

5 years agoReplace most remaining uses of container api
Matthias Clasen [Sat, 9 May 2020 12:26:52 +0000 (08:26 -0400)]
Replace most remaining uses of container api

These are all on GtkBox or enumerating children.